<?php

class Application_Model_Base{
    protected function getDBAdapter(){
        $registry = Zend_Registry::getInstance();
        if(!isset($registry->dbAdapter)){
            $registry->dbAdapter = new Zend_Db_Adapter_Pdo_Mysql(
                $registry->config['db']
            );
        }
        return $registry->dbAdapter;
    }
}